package com.example.manager.retrofit;

import com.example.manager.ui.LoginRequest;
import com.example.manager.javaBean.GsonBean;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface ApiService {


    @GET("/prod-api/press/category/list")
    Call<GsonBean> getNewType1();

    @POST("/prod-api/api/login")
    Call<GsonBean> postLogin(@Body LoginRequest loginRequest);

    @GET("/prod-api/api/rotation/list")
    Call<GsonBean> getBanner(@Query("type") String type);
}
